package com.cvte.boe.media.utils;

import android.content.Context;

/**
 * Created by wuguitong on 2018/4/8.
 */
public class OrientationUtil {
    public static final int ORIENTATION_PORTRAIT = 1;//竖屏
    public static final int ORIENTATION_LANDSCAPE = 2;//横屏

    public static boolean isLandscapeOrientation(Context mContext){
        if(mContext != null) {
            return mContext.getResources().getConfiguration().orientation == ORIENTATION_LANDSCAPE;
        }
        return false;
    }
}
